FIX undefined offset when methods have default parameters