Fixed issues with intervals in onInit (#462)