Fixes typecasting issue in purge. Purge verified to function when price remains stable.