Prevented the Runtime Error from appearing