fixing bug where events would automatically resize