Build error fixed in method