Notice error fixed