Fixed bug in hint purchase code