Added fnone function and fixed bug in update_in