reference problem fixed