Fixed invalid pointer assignment warning