Fixed error in paused behaviour of plugin

#4