Thanks snackled for spotting the bug. I've updated the code and this matter is resolved. Please see to the latest edit.
Oh, please give me your ratings if you will ^_^