fix "Notice: Undefined property contact" see #115