a* bugfixing