Fixed a "Not All Code Paths Returns A Value"