Minor bug fix on update