fixed a few relativelayout bugs