fixed getting levels