Fixes

Fixed level variable issues