Fixed usage of wrong function.