fixed a bug about changing profile images