Invalid reference.. using method instead attribute