Fixed the protected variables problem

FIXED