Fix extending classes & parent function calling