attempted to fix levels bug