fixed a minor assingment bug