Fixed null fk error