fix wrong implementation of setRight, setBottom