fixed some debugs