getStyle fixed no calcultions for undefined values