trying to fix error when deployed