While Justin and Miranda have dated for a while in this episode and in episode 10 Justin asks her to be his his girlfriend may seem like an error it's simply of the episodes airing out of order. Episode 10 was one produced as one of the first but didn't air until later. Therefore despite airing before this episode takes place after episode 10.