fixed positioning bug for right/bottom part of screen