Fixed dereference problem