fixed deref problem