fixed wrapping bug