fixed malloc size error