strangely not working outside debugger ?!