Fixes eventmap
Create loop