fixed bad return from using a cast in a delete thanks to https://twitter.com/chrismcg/status/529402978160369664