Fixed racing condition because plugin wasn't properly initialized on time.