fixed a line causing crashes