bug fixes for checkout js