added right edge fix for top position