fixed more position related bugs