Fixed a problem that caused notices due to a not existing property