Fixed HAlign/VAlign middle alignment bug