fixed LoopEndlessBrick nullPointerException