Trying to fix weird crash problem