Fixed bug
Added some log