fix undefined call

hi erobit, this was causing app crashes.