fixed a problem with pointer assignability