Fix bug on Oracle for quartz