trying to fix weird bug