fix undefined argument being passed