fixed output error