Fixed the function call error