fixed bug in api Looper