Fixed bug with wrong amount of characters returned