fixed a little crash