T_SL error fixes, Call to undefined method error fix