fix rotation initialization for elements