Added PreRenderPasses event to set the amount of render passes and bug fix