solved the bug