fix undefined method reference.