fix NoMethodError caused by missing argument