fixed reference issue