Fixed bug related to incorrect function call.