Fixed the crashing issues (non-static variable)