Fixed ragged end bound issue