Fixed misc bugs in purchase page