Calling method error fixed