solved wrapping bug