fixed last in - bug