Trying to fix error in another way