fix close button bug

Close button do nothing, here is little fix for this

btw: thank you for this plugin