fixed reseting borders on update