Trying to fix weird errors