Fix undefined method application