Fix according to new version of OL3