Fixed wrong function been called