Fixed error in resolving bucket path