fixed a bug with the setter