Fixed bug resolving relative labels