fix few bugs of positions