fix bugs logged