Fixed the return type in case of failure