Fixed previous function call