Bugfix with labels

* Correction of margins handling
* Typo in x_text when label is overflowing right and top
Some typos with margin left