weird broken with malloc