Fixes #687. Bug when using CSS calc function