Fix strict and deprecated errors in console

for propel