Fixed notices in framework

Framework should not throw notices now :)