Fixed initial attributes and text rotation issues

@williams13 I pushed your changes in this branch..