How to fix this type of error? thank in advance!