Fixed bug "Fatal error: Call to undefined method"