fixed a malloc error, and fixed some strings