prevented queue from executing twice