fixed math in my zIndex setter