fixed bug in right align text rendering and alpha