Fixed http://pastebin.com/UaTwvfDG