Fixed update function for file types