changes in upperbound, weird behaviour of switched w and h is now gone

Signed-off-by: Matthias Rohrbach <m.rohrbach@robandrose.ch>