Prevent from memory overflow